import Message from './message.vue'
import MessageSearch from './messageSearch.vue'
import MessageEdit from './messageEdit.vue'
import MessageAdd from './messageAdd.vue'
import MessageView from './messageView.vue'

const components = [
  Message,
  MessageSearch,
  MessageEdit,
  MessageAdd,
  MessageView
]

const main = {
  install(Vue) {
    components.map((component) => {
      Vue.component(component.name, component)
    })
  }
}

export default main
